Type of field. This can be one of the following types
Field attribute. Can be one of the following
For shared static fields, you also get an extra line for each domain,
except for the system and the shared domain
Domain: is followed by all available domains and whether the variable is
initialized in the specific domain. NotInit, FailInit or UnInit2 is
displayed if the static field is not initialized in the specific domain.
Use the DumpDomain command on the domain address to display information
about the domain.
DumpObj
Dump an object on garbage-collected heap.
Syntax
!DumpObj <addr>
Parameters
<addr>
Object address
Displays information about fields in the current object (including inherited
fields)
Example
0:000> !DumpObj 00c41bd4
Name: MyDebugApp.myDerrivedClass
MethodTable 0x003e51a8
EEClass 0x02e41150
Size 12(0xc) bytes
mdToken: 02000003 (C:\MyProjects\MyDebugApp\bin\Debug\MyDebugApp.exe)
FieldDesc*: 003e515c
MT Field Offset Type Attr Value Name
003e5110 4000001 4 System.Int32 instance 0 i
003e51a8 4000002 20 System.Int32 static 00000005 j
Comments
Name
Class name
MethodTable
Method table. Use the DumpMT command to get more information, as shown in
the following example.
0:000> !DumpMT 0x003e51a8
EEClass : 02e41150
Module : 0015eaa0
Name: MyDebugApp.myDerrivedClass
mdToken: 02000003 (C:\MyProjects\MyDebugApp\bin\Debug\MyDebugApp.exe)
MethodTable Flags : 80000
Number of IFaces in IFaceMap : 0
Interface Map : 003e51f4
Slots in VTable : 7
EEClass
EEClass address. For more detailed information, use the DumpClass
command.
Size
Size of the class in bytes
mdToken
Metadata token. For more information about using the metadata token, see
the HowTo section.
FieldDesc
Address of the first fielddescription
MT
Method table for the class this variable is a memeber of. Notice that in
the following example, j is a member of
MyDebugApp.myDerrivedClass while i is a member of MyDebugApp.myBaseClass
0:000> !DumpMT 003e5110
EEClass : 02e410ec
Module : 0015eaa0
Name: MyDebugApp.myBaseClass
mdToken: 02000002 (C:\MyProjects\MyDebugApp\bin\Debug\MyDebugApp.exe)
MethodTable Flags : 80000
Number of IFaces in IFaceMap : 0
Interface Map : 003e5154
Slots in VTable : 6
Field
Meta data token (mdFieldDef) for the particular field
Offset
Type
PTR
BYREF
VALUETYPE
CLASS
VAR
ARRAY
VALUEARRAY
Native Real
FNPTR
SZARRAY
GENERICARRAY
<base type name ex. System.Int32 >
Attr
shared
shared static
static
instance
0da689e4 4000bc8 8 CLASS shared static EventError
>> Domain:Value 00150718:NotInit 001a57b8:050c7510 <<
You can dump out the object using !DumpObj
0:001> !DumpObj 050c7510
Name: System.Object
MethodTable 0x79b4dd80
EEClass 0x79b4dde4
Size 12(0xc) bytes
mdToken: 02000002 (c:\windows\microsoft.net\framework\v1.0.3705\mscorlib.dll)
Object
Value
Can be empty if it is an instance field, or static if it is an uninitialized
shared variable.
Name
Name of field (member variable).